import request from '@/router/axios';

export const getList = (page, size, params) => {
    return request({
        url: '/evaluate/goodsComment/list',
        method: 'post',
        params: {
            ...params,
            page,
            size,
        }
    })
}
export const remove = (id) => {
    return request({
        url: '/evaluate/goodsComment/delete',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: {
            id,
        }
    })
}

export const add = (row) => {
    return request({
        url: '/evaluate/goodsComment/addItem',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: row
    })
}

export const update = (row) => {
    return request({
        url: '/evaluate/goodsComment/editItem',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: row
    })
}
export const deleteEvaluate = (id) => {
    return request({
        url: '/evaluate/goodsComment/delete',
        method: 'post',
        meta: {
            isSerialize: true,
        },
        data: {
			id
		}
    })
}

export const getStoreList = (page, size, storeName) => {
    return request({
        url: '/base/store/listStoreManage',
        method: 'post',
        params: {
            storeName,
            page,
            size,
        }
    })
}
